package chat;

import javax.servlet.*;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;

@WebServlet("/test3")
public class Test3 implements Servlet {
    static{
        System.out.print("1");
    }
    public Test3(){
        System.out.print("2");
    }


    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        String key = servletConfig.getServletContext().getInitParameter("companyName");
        System.out.println(key);
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {

    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
